package com.buba.system.service.Impl;

import com.buba.system.dao.EmployeeMapper;
import com.buba.system.pojo.Employee;
import com.buba.system.pojo.Page;
import com.buba.system.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class EmployeeServiceImpl implements EmployeeService {
    private EmployeeMapper employeeMapper;

    @Override
    public Employee selEmployee(String employeeId) {
        return employeeMapper.selEmployee(employeeId);
    }

    @Override
    public Long selCountAll() {
        return employeeMapper.selCountAll();
    }

    @Override
    public List<Employee> selEmployeeAll(Page<Employee> page) {
        return employeeMapper.selEmployeeAll(page);
    }

    @Override
    public Long selCount(Map<String, Object> map) {
        return employeeMapper.selCount(map);
    }

    @Override
    public List<Employee> selAllEmployee(Map<String, Object> map) {
        return employeeMapper.selAllEmployee(map);
    }

    @Override
    public Integer addEmployee(Map<String, Object> map) {
        return employeeMapper.addEmployee(map);
    }

    @Override
    public long addJob(Map<String, Object> map) {
        return employeeMapper.addJob(map);
    }

    @Override
    public Integer delEmployee(List<String> list) {
        return employeeMapper.delEmployee(list);
    }

    @Override
    public Integer delEmployeeAll(List<String> list) {
        return employeeMapper.delEmployeeAll(list);
    }

    @Override
    public Integer updEmployee(Map<String, Object> map) {
        return employeeMapper.updEmployee(map);
    }


    @Autowired
    public void setEmployeeMapper(EmployeeMapper employeeMapper) {
        this.employeeMapper = employeeMapper;
    }
}
